<?php
$contractor_model = $this->contractordata;
$updated_data_name = $this->admindata;


?>
<div id="pad-wrapper">
    <div class="row pagelist-header">
        <h3><?php echo $this->translate("contractor_menu") . " " . $this->translate("detail_title"); ?></h3>
    </div>
    <div class="table-products">

        <div class="row-fluid ">
            <div class="pull-right">
                <a class="btn-flat new-product" href="<?php echo $this->url(array('module' => 'default', 'controller' => 'contractor', 'action' => 'list'), null, TRUE); ?>"><?php echo $this->translate("detail_back"); ?></a>
            </div>              
        </div>

        <div class="main_detail">
            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("contractor_frm_name"); ?>: </div>
                <div class="detail_data"><?php echo $contractor_model['cont_title_child']." ".ucfirst($contractor_model['cont_firstname']) . " " . ucfirst($contractor_model['cont_lastname']); ?></div>
            </div>

            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("contractor_frm_image"); ?>: </div>
                <div class="detail_data">
                    <?php 
                    if($contractor_model['cont_image'] != ''):
                    if (file_exists($this->UPLOAD_PATH . "contractor/" . $contractor_model['cont_image'])): ?> 
                        <img src="<?php echo $this->PUBLIC_PATH . "upload/contractor/" . $contractor_model['cont_image'] ?>" height="100" width="100">
<?php endif; 
    endif;
?>
                </div>
            </div>


            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("contractor_frm_phone"); ?>: </div>
                <div class="detail_data"><?php echo $contractor_model['cont_phone']; ?></div>
            </div>
            
            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("contractor_frm_mobile"); ?>: </div>
                <div class="detail_data"><?php echo $contractor_model['cont_mobile_no']; ?></div>
            </div>

            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("contractor_frm_email"); ?>: </div>
                <div class="detail_data"><?php echo $contractor_model['lgn_const_email']; ?></div>
            </div>
            
            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("contractor_frm_company"); ?>: </div>
                <div class="detail_data"><?php echo $contractor_model['com_name']; ?></div>
            </div>
            
            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("contractor_frm_department"); ?>: </div>
                <div class="detail_data"><?php echo $this->departmentName ; ?></div>
            </div>
            
            

            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("contractor_frm_address"); ?>: </div>
                <div class="detail_data"><?php echo $contractor_model['cont_address']; ?></div>
            </div>

            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("contractor_frm_city"); ?>: </div>
                <div class="detail_data"><?php echo $contractor_model['cont_city']; ?></div>
            </div>

            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("contractor_frm_state"); ?>: </div>
                <div class="detail_data"><?php echo $contractor_model['cont_state']; ?></div>
            </div>

            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("contractor_frm_zipcode"); ?>: </div>
                <div class="detail_data"><?php echo $contractor_model['cont_zipcode']; ?></div>
            </div>

            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("contractor_frm_country"); ?>: </div>
                <div class="detail_data"><?php echo $contractor_model['country_name']; ?></div>
            </div>

            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("contractor_frm_quality"); ?>: </div>
                <div class="detail_data"><?php echo $contractor_model['child_quality']; ?></div>
            </div>

            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("contractor_frm_security_ques"); ?>: </div>
                <div class="detail_data"><?php echo $contractor_model['cont_securityquestion']; ?></div>
            </div>

            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("contractor_frm_security_ans"); ?>: </div>
                <div class="detail_data"><?php echo $contractor_model['cont_securityanswer']; ?></div>
            </div>

            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("contractor_frm_availability"); ?>: </div>
                <div class="detail_data"><?php echo $contractor_model['child_availability']; ?></div>
            </div>

            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("contractor_frm_createdate"); ?>: </div>
                <div class="detail_data"><?php echo date('Y-m-d', strtotime($contractor_model['cont_createddate'])); ?></div>
            </div>

            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("contractor_frm_updatedate"); ?>: </div>
                <div class="detail_data"><?php echo date('Y-m-d', strtotime($contractor_model['cont_updateddate'])); ?></div>
            </div>

            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("contractor_frm_updated_by"); ?>: </div>
                <div class="detail_data">
<?php echo $updated_data_name; ?>
                </div>
            </div>

            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("contractor_frm_status"); ?>: </div>
                <div class="detail_data">
<?php echo ( $contractor_model['lgn_active'] == 1 ) ? 'Active' : 'Inactive'; ?>
                </div>
            </div>
        </div>
    </div>
</div>
<div style="clear: both"></div>
<a class="back_bottom" href="<?php echo $this->url(array('module' => 'default', 'controller' => 'contractor', 'action' => 'list'), null, TRUE); ?>"><?php echo $this->translate("detail_back"); ?></a>

